
const storage = {
    setStorage(key, value = {}) {
        localStorage.setItem(key, JSON.stringify(value))
    },
    getStoreag(key) {
        let str = localStorage.getItem(key)
        return str ? JSON.parse(str) : {}
    }
}

export default storage